package com.itxh.mybatis.test;

import com.itxh.mybatis.dao.UserDao;
import com.itxh.mybatis.dao.UserDaoImplWithJdbc2;
import com.itxh.mybatis.po.User;
import org.junit.Test;

import java.util.List;


public class UserDaoTestWithJdbc2 {


	@Test
	public void testQueryUserById() {
		UserDao userDao = new UserDaoImplWithJdbc2();
		User user = userDao.queryUserById(1);
		System.out.println(user);

	}

	@Test
	public void testQueryUsersByUsername() {
		UserDao userDao = new UserDaoImplWithJdbc2();

		List<User> users = userDao.queryUserByName("小妲己");
		System.out.println(users);

	}

}
